perm filename DOC.TEX[CLS,LSP] blob sn#847455 filedate 1987-10-20 generic text, type C, neo UTF8
COMMENT āŠ—   VALID 00002 PAGES
C REC  PAGE   DESCRIPTION
C00001 00001
C00002 00002	āˆ‚20-Oct-87  1353	Moon@STONY-BROOK.SCRC.Symbolics.COM 	documentation documentation 
C00007 ENDMK
CāŠ—;
āˆ‚20-Oct-87  1353	Moon@STONY-BROOK.SCRC.Symbolics.COM 	documentation documentation 
Received: from SCRC-STONY-BROOK.ARPA by SAIL.STANFORD.EDU with TCP; 20 Oct 87  13:53:22 PDT
Received: from EUPHRATES.SCRC.Symbolics.COM by STONY-BROOK.SCRC.Symbolics.COM via CHAOS with CHAOS-MAIL id 259416; Tue 20-Oct-87 16:54:18 EDT
Date: Tue, 20 Oct 87 16:54 EDT
From: SKeene@STONY-BROOK.SCRC.Symbolics.COM, Moon@STONY-BROOK.SCRC.Symbolics.COM
Sender: Moon@STONY-BROOK.SCRC.Symbolics.COM
Subject: documentation documentation
To: rpg@sail.stanford.edu
Message-ID: <19871020205419.6.MOON@EUPHRATES.SCRC.Symbolics.COM>

\begincom{documentation}\ftype{Generic Function}

\label Purpose:

The Common Lisp function {\bf documentation} is replaced by a generic
function.  The generic function {\bf documentation} returns the
documentation string associated with the given object if it is
available; otherwise it returns {\bf nil}.

\label Syntax:

\Defgen documentation {x {\opt} doc-type}

\label Arguments:

The first argument is either a symbol, a list such as {\tt (setf {\it
symbol\/})}, a method object, a class object, or a generic function
object.

If the first argument is a method object, a class object, or a generic
function object, the second argument must not be supplied.  {\bf
documentation} returns the documentation string of that object.
 
If the first argument is a symbol or a list, the second argument must be
supplied.   The {\it doc-type\/} argument is a symbol.  It can be one
of the following types: {\bf variable}, {\bf function}, {\bf structure},
{\bf type}, {\bf setf}, and {\bf method-combination}.  The generic
function {\bf documentation} returns the documentation string of the
given type.

{\tt (documentation {\it symbol\/} 'type)} returns the documentation
string of the class object named by the symbol, if there is such a
class.   Otherwise it returns the documentation string of the type
specifier named by the symbol. 

{\tt (documentation {\it symbol-or-list\/} 'function)} returns the
documentation string of the function, generic function, special form, or
macro named by the symbol or list.

{\tt (documentation {\it symbol\/} 'method-combination)} returns the
documentation string of the method combination type named by the
symbol.  

{\tt (documentation {\it symbol\/} 'setf)} returns the documentation
string of the {\bf defsetf} or {\bf define-setf-method} associated with
the symbol.
  
\label Values:

The documentation string associated with the given object is returned
unless none is available, in which case {\bf documentation} returns
{\bf nil}.

\label Remarks:

The macro {\bf setf} can be used with {\bf documentation} to update the
documentation. 

\endcom